Ext.define('DCApp.view.ccsync.Detail', {
	extend: 'DCApp.view.Detail',
    alias: 'widget.ccsyncdetail',
    
    bind: {
        title: '日志 - 【{theObj.id}】'
    },
    
    componentCls: 'ccsync-detail',
    bodyPadding: 0,
    
    controller: 'detail',
    
    tbar: [{
        text: '返回',
        handler: 'onBackClick'
    }],
    
    afterRender: function(ct, position) {
    	this.callParent();
    },
    
    items: [
    	{
    		listeners: {
				render: function(p) {
					p = p.getEl();
					var me = this.up();
					me.h0 = p.getHeight();
			    	p.on('scroll', function(e, t) {
			    		me.onscroll(t.scrollTop,t.clientHeight);
			    	}, p);
			  	}
			},
    		title: 'Panel 0',
        	flex: 2,
        	frame: false,
        	xtype: 'container',
        	layout: 'anchor',
        	style: {
            	overflow: 'auto'
        	},
        	items: [
        	   {        		
        		title : '日志信息',
				margin : '0 0 10 0',
				cls : 'nav_pos',
				reference : 'form',
				bodyPadding : 10,
				fieldDefaults : {
					labelAlign : 'right',
					labelWidth : 100,
					padding : 3
				},
				defaults : {
					anchor : '100%'
				},
				xtype: 'form',
				items: [
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
                			{
                        		flex: 1,
		                        fieldLabel: '实体类',
		                        allowBlank: false,
		                        bind: '{theObj.en}',
		                        publishes: ['value']
		                    },
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: 'IP',
		                        allowBlank: false,
		                        bind: '{theObj.ip}',
		                        publishes: ['value']
		                    }		                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
                			{
                        		flex: 1,
		                        fieldLabel: '类ID',
		                        allowBlank: false,
		                        bind: '{theObj.keyval}',
		                        publishes: ['value']
		                    },
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '活动',
		                        allowBlank: false,
		                        bind: '{theObj.oper}',
		                        publishes: ['value']
		                    }	                        
                		]
            		},
            		{
                        xtype: 'container',
                        layout: 'hbox',
                        combineErrors: true,
                        defaultType: 'textfield',
                        items:[
                			{
                        		flex: 1,
		                        fieldLabel: '创建时间',
		                        allowBlank: false,
		                        bind: '{theObj.tmCreate}',
		                        publishes: ['value']
		                    },
		                    {
		                    	flex: 1,
		                        xtype: 'textfield',
		                        fieldLabel: '操作人',
		                        allowBlank: false,
		                        bind: '{theObj.userid}',
		                        publishes: ['value']
		                    }		                        
                		]
            		},
            		{
                        fieldLabel: '描述',
                        allowBlank: false,
                        bind: '{theObj.description}',
                        publishes: ['value']
            		}
				]
        	}
            ]
        }
	]
});
